package 接口;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: GaoBo
 * Date: 2021-05-18
 * Time: 20:47
 */
interface A {
    void funcA();
}
interface B {
    void funcB();
}

interface C {
    void funcB();
}
//extends 扩展
interface D extends A,B{
    void funcD();
}
class CC3 implements D {
    @Override
    public void funcA() {
    }

    @Override
    public void funcB() {
    }

    @Override
    public void funcD() {
    }
}

class CC implements A,B{

    @Override
    public void funcA() {

    }

    @Override
    public void funcB() {

    }
}

class CC2 implements B,C{
    @Override
    public void funcB() {
        System.out.println("fdsa");
    }
}

public class TestInterFace {
    public static void main(String[] args) {
        C b = new CC2();
        b.funcB();
    }
}
